﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TypeOfBusinessLookup.ascx.cs"
    Inherits="AB.ServiceDirectory.Design.WebUserControls.Lookup.TypeOfBusinessLookup" %>
<%@ Register TagPrefix="cc1" Namespace="Vladsm.Web.UI.WebControls" Assembly="GroupRadioButton, Version=1.0.0.0, Culture=neutral, PublicKeyToken=93985c16c9bea92d" %>
<asp:Panel runat="server" ID="PanelContainer" CssClass="" Visible="false">
    <%--<asp:UpdatePanel ID="ContactListUpdatePanel" runat="server">
        <ContentTemplate>--%>
            <div class="grid740 simplebox popup">
                <div class="titleh">
                    <h3>Search Business Type</h3>
                </div>
                <div class="body">
                    <div class="st-form-line">
                        <div class="half">
                            <asp:Label ID="LabelBusinessName" runat="server" Text="Business Name" AssociatedControlID="TextBoxBusinessName"></asp:Label>
                            <asp:TextBox ID="TextBoxBusinessName" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                        </div>
                        <div class="half">
                            <asp:Label ID="LabelBoxSISCode" runat="server" Text="SISCode" AssociatedControlID="TextBoxSISCode"></asp:Label>
                            <asp:TextBox ID="TextBoxSISCode" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="button-box">
                        <asp:Button ID="ButtonSearch" runat="server" Text="Search" OnClick="ButtonSearchClick"
                            CssClass="st-button" />
                        <asp:Button ID="ButtonNone" runat="server" Text="None" CssClass="st-button" OnClick="ButtonNoneClick" />
                        <asp:Button ID="ButtonClear" runat="server" Text="Clear" CssClass="st-button" OnClick="ButtonClearClick" />
                    </div>
                    <div class="st-form-line">
                        <div class="titleh">
                        </div>
                        <asp:GridView ID="GridViewSearchBusiness" CssClass="tablesorter" runat="server" AutoGenerateColumns="False"
                            DataKeyNames="BusinessId" AllowPaging="True" DataSourceID="BusinessTypeObjectDataSource"
                            AllowSorting="True">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <cc1:GroupRadioButton ID="GroupRadioButton1" runat="server" GroupName="GroupSearch" />
                                    </ItemTemplate>
                                    <ItemStyle Width="25px" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Business Name" DataField="BusinessName" SortExpression="BusinessName">
                                    <HeaderStyle CssClass="header" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="SIS Code" DataField="SICCode" SortExpression="SICCode">
                                    <HeaderStyle CssClass="header" />
                                </asp:BoundField>
                            </Columns>
                        </asp:GridView>
                        <asp:ObjectDataSource ID="BusinessTypeObjectDataSource" runat="server" SelectMethod="GetList"
                            TypeName="AB.ServiceDirectory.BO.TypeOfBusinessBO" EnablePaging="true" SelectCountMethod="GetListCount"
                            StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows"
                            SortParameterName="sortType" OnSelecting="BusinessTypeObjectDataSource_Selecting">
                            <SelectParameters>
                                <asp:Parameter Name="filter" Type="Object" ConvertEmptyStringToNull="False" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <br />
                        <div class="">
                            <asp:Button ID="ButtonSelect" runat="server" Text="Select" CssClass="st-button" OnClick="ButtonSelectClick" />
                            <asp:Button ID="ButtonClose" runat="server" Text="Close" CssClass="st-button" OnClick="ButtonCloseClick" />
                        </div>
                    </div>
                </div>
            </div>
        <%--</ContentTemplate>
    </asp:UpdatePanel>--%>
    <div class="clear">
    </div>
</asp:Panel>
